package sessions;

import java.util.Hashtable;

import entities.RegistratoEB;
import exceptions.ArgomentoNonValido;
import javax.ejb.Stateless;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.rmi.PortableRemoteObject;

import org.jboss.ejb3.annotation.RemoteBinding;






@Stateless
@RemoteBinding(jndiBinding="RegistratoSBRemote")
public class RegistratoSB implements RegistratoSBRemote {
	
	@PersistenceContext(unitName="")
	private EntityManager manager;
	
	
	@Override
	public void logout(int key) {
		HashList.removeHash(key);
		
	}

}
